// import phy from '../../api/phy'

Component({
    properties: {
        styles: {
            type: String,
        },
        theme: {
            type: String,
            value: ''
        }
    },
    lifetimes: {
        attached() {
            this.getExam()
        }
    },
    options: {},
    data: {
        exam: {}
    },
    methods: {
        async getExam() {
            try {
                const info = await phy.getExamTiZheng()
                console.log('获取当前用户的体证', info)
                this.setData({
                    exam: info
                })
            } catch (e) {
                console.error(e)
            }
        }
    }
})
